home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / programm.ing / wx_lib10.zoo / wx_setcl.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-01  |  473 b   |  20 lines

  1. #include <wx_lib.h>
  2.  
  3. /*
  4.  * This is a simple utility function--it merely sets the wx_lib vdi handle's
  5.  * clipping rectangle to be the interior of the window.
  6.  *
  7.  * Arguments:    Just the Window structure for the window involved.
  8.  */
  9. void    wx_setclip(ws)
  10. Window    *ws;
  11. {
  12.     int    array[4];
  13.  
  14.     array[0] = ws->work.g_x;
  15.     array[1] = ws->work.g_y;
  16.     array[2] = ws->work.g_x + ws->work.g_w - 1;
  17.     array[3] = ws->work.g_y + ws->work.g_h - 1;
  18.     vs_clip(ws->vdih,TRUE,array);
  19. }
  20.